package com.palm.platform.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.sql.Types;

import lombok.Data;
import org.noear.solon.annotation.Note;
import org.noear.solon.validation.annotation.*;
import org.sagacity.sqltoy.config.annotation.Entity;
import org.sagacity.sqltoy.config.annotation.Id;
import org.sagacity.sqltoy.config.annotation.Column;

@Data
@Note("t_config")
@Entity(tableName="t_config")
public class Config implements Serializable{
    /**
    * 编码
    */
    @Note("编码")
    @Id
    @Length(max=20)
    @Column(name="code",length=20L,type=Types.VARCHAR,nullable=false)
    private String code;
    /**
    * 标题
    */
    @Note("标题")
    @Length(max=20)
    @Column(name="title",length=20L,type=Types.VARCHAR)
    private String title;
    /**
    * 分组标题
    */
    @Note("分组标题")
    @Length(max=20)
    @Column(name="group_title",length=20L,type=Types.VARCHAR)
    private String groupTitle;
    /**
    * 值
    */
    @Note("值")
    @Length(max=100)
    @Column(name="value",length=100L,type=Types.VARCHAR)
    private String value;
    /**
    * 控件类型
    */
    @Note("控件类型")
    @Length(max=10)
    @Column(name="control",length=10L,type=Types.VARCHAR)
    private String control;
    /**
    * 数据可从translate获取
    */
    @Note("数据可从translate获取")
    @Length(max=10)
    @Column(name="translate",length=10L,type=Types.VARCHAR)
    private String translate;
    /**
    * 数据选择过滤条件
    */
    @Note("数据选择过滤条件")
    @Length(max=10)
    @Column(name="cache_type",length=10L,type=Types.VARCHAR)
    private String cacheType;
}
